Browse Source

flakify

master
Astro 7 months ago
committed by nek0
parent
commit
eaad95ad5f
  1. 41
      flake.lock
  2. 17
      flake.nix

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

17
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;
});
}
Loading…
Cancel
Save