mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-12 22:17:41 +00:00
nix: add a 'stash' package alias
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a69644d284206d2502da6f21997293fecd784
This commit is contained in:
parent
dd4a9b5894
commit
514572b804
1 changed files with 9 additions and 6 deletions
15
flake.nix
15
flake.nix
|
|
@ -1,6 +1,8 @@
|
|||
{
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
|
||||
inputs.crane.url = "github:ipetkov/crane";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
|
||||
crane.url = "github:ipetkov/crane";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
|
|
@ -11,10 +13,11 @@
|
|||
forEachSystem = nixpkgs.lib.genAttrs systems;
|
||||
pkgsForEach = nixpkgs.legacyPackages;
|
||||
in {
|
||||
packages = forEachSystem (system: {
|
||||
default = pkgsForEach.${system}.callPackage ./nix/package.nix {
|
||||
craneLib = crane.mkLib pkgsForEach.${system};
|
||||
};
|
||||
packages = forEachSystem (system: let
|
||||
craneLib = crane.mkLib pkgsForEach.${system};
|
||||
in {
|
||||
stash = pkgsForEach.${system}.callPackage ./nix/package.nix {inherit craneLib;};
|
||||
default = self.packages.${system}.stash;
|
||||
});
|
||||
|
||||
devShells = forEachSystem (system: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue