This commit is contained in:
Astro 2021-03-10 01:29:14 +01:00
parent f476e773df
commit 3b82d37bd2
2 changed files with 58 additions and 0 deletions

41
flake.lock Normal file
View file

@ -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
}

17
flake.nix Normal file
View file

@ -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;
});
}