From 3b82d37bd2596fe03b179840120d90ce67cf6e05 Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 10 Mar 2021 01:29:14 +0100 Subject: [PATCH] flakify --- flake.lock | 41 +++++++++++++++++++++++++++++++++++++++++ flake.nix | 17 +++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..5f53a2c --- /dev/null +++ b/flake.lock @@ -0,0 +1,41 @@ +{ + "nodes": { + "flake-utils": { + "locked": { + "lastModified": 1614513358, + "narHash": "sha256-LakhOx3S1dRjnh0b5Dg3mbZyH0ToC9I8Y2wKSkBaTzU=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "5466c5bbece17adaab2d82fae80b46e807611bf3", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1615334875, + "narHash": "sha256-+OZmqQRqjFtcA9sjAv9ke1Xt7iV1GxZ6sUZFuxteRDI=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "6bd4e08c3453e544d3d61ca845d7ab0f1507c374", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..124f4d2 --- /dev/null +++ b/flake.nix @@ -0,0 +1,17 @@ +{ + description = "Matemat"; + inputs.flake-utils.url = "github:numtide/flake-utils"; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: { + packages.yammat = nixpkgs.legacyPackages.${system}.haskellPackages.callPackage ./pkg.nix {}; + + defaultPackage = self.packages.${system}.yammat; + + devShell = import ./shell.nix { + nixpkgs = nixpkgs.legacyPackages.${system}; + }; + + nixosModule = import ./nixos-module.nix; + }); +}