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;
|
path = ./hello;
|
||||||
description = "Template including hello in shell packages";
|
description = "Template including hello in shell packages";
|
||||||
};
|
};
|
||||||
|
package = {
|
||||||
|
path = ./package;
|
||||||
|
description = "Template for a nix package";
|
||||||
|
};
|
||||||
rust = {
|
rust = {
|
||||||
path = ./rust;
|
path = ./rust;
|
||||||
description = "Rust template, using oxalica/rust-overlay";
|
description = "Rust template, using oxalica/rust-overlay";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
description = "Flake template for nix package";
|
description = "Template for a nix package";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
|
@ -11,7 +11,9 @@
|
||||||
let pkgs = import nixpkgs { inherit system; };
|
let pkgs = import nixpkgs { inherit system; };
|
||||||
in with pkgs; {
|
in with pkgs; {
|
||||||
devShells.default = mkShell { packages = [ ]; };
|
devShells.default = mkShell { packages = [ ]; };
|
||||||
packages.default = self.packages."${system}".package;
|
packages = {
|
||||||
packages."package" = pkgs.callPackage ./package.nix { };
|
default = self.packages."${system}".package;
|
||||||
|
"package" = pkgs.callPackage ./package.nix { };
|
||||||
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
{ lib
|
{ lib, stdenv }:
|
||||||
, stdenv
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "";
|
pname = "";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue