Finished adding package template
This commit is contained in:
parent
868d01d3a1
commit
741dad4df5
3 changed files with 10 additions and 6 deletions
|
|
@ -7,6 +7,10 @@
|
|||
path = ./hello;
|
||||
description = "Template including hello in shell packages";
|
||||
};
|
||||
package = {
|
||||
path = ./package;
|
||||
description = "Template for a nix package";
|
||||
};
|
||||
rust = {
|
||||
path = ./rust;
|
||||
description = "Rust template, using oxalica/rust-overlay";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
description = "Flake template for nix package";
|
||||
description = "Template for a nix package";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
|
@ -11,7 +11,9 @@
|
|||
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 { };
|
||||
packages = {
|
||||
default = self.packages."${system}".package;
|
||||
"package" = pkgs.callPackage ./package.nix { };
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
}:
|
||||
{ lib, stdenv }:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue