Finished adding package template

This commit is contained in:
rotterdam 2023-04-06 12:29:12 -03:00
parent 868d01d3a1
commit 741dad4df5
3 changed files with 10 additions and 6 deletions

View file

@ -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";

View file

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

View file

@ -1,6 +1,4 @@
{ lib
, stdenv
}:
{ lib, stdenv }:
stdenv.mkDerivation (finalAttrs: {
pname = "";