2023-11-23 16:10:07 +03:00
|
|
|
{ inputs, ... }: {
|
2023-12-22 22:34:22 +03:00
|
|
|
perSystem = { self', inputs', pkgs, lib, ... }:
|
2023-11-23 16:10:07 +03:00
|
|
|
let
|
2024-03-01 14:38:12 +03:00
|
|
|
inherit (inputs'.nix.packages) nix;
|
2023-12-22 22:34:22 +03:00
|
|
|
nixpkgs = self'.packages.nixpkgs-migrated;
|
2023-11-28 19:28:51 +03:00
|
|
|
in
|
|
|
|
{
|
2023-11-23 16:10:07 +03:00
|
|
|
packages = {
|
2023-12-22 22:34:22 +03:00
|
|
|
pasta-meta = pkgs.stdenv.mkDerivation {
|
|
|
|
name = "pasta-meta";
|
|
|
|
src = ./.;
|
|
|
|
buildPhase = ''
|
|
|
|
echo "\"${builtins.toJSON inputs.nixpkgs-master.rev}\"" > $out
|
|
|
|
'';
|
|
|
|
};
|
2023-11-23 16:10:07 +03:00
|
|
|
pasta = pkgs.callPackage ./default.nix { inherit nixpkgs nix pkgs; };
|
|
|
|
};
|
|
|
|
devShells.pastaMaker = pkgs.callPackage ./shell.nix { inherit pkgs nix; };
|
|
|
|
};
|
|
|
|
}
|