Added package template
This commit is contained in:
parent
78023b3b12
commit
868d01d3a1
3 changed files with 37 additions and 0 deletions
17
package/flake.nix
Normal file
17
package/flake.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
description = "Flake template for nix package";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, ... }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let pkgs = import nixpkgs { inherit system; };
|
||||
in with pkgs; {
|
||||
devShells.default = mkShell { packages = [ ]; };
|
||||
packages.default = self.packages."${system}".package;
|
||||
packages."package" = pkgs.callPackage ./package.nix { };
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue