noogle/pasta/flake-module.nix
2024-03-01 12:03:49 +00:00

21 lines
603 B
Nix

{ inputs, ... }: {
perSystem = { self', inputs', pkgs, lib, ... }:
let
inherit (inputs'.nix.packages) nix;
nixpkgs = self'.packages.nixpkgs-migrated;
in
{
packages = {
pasta-meta = pkgs.stdenv.mkDerivation {
name = "pasta-meta";
src = ./.;
buildPhase = ''
echo "\"${builtins.toJSON inputs.nixpkgs-master.rev}\"" > $out
'';
};
pasta = pkgs.callPackage ./default.nix { inherit nixpkgs nix pkgs; };
};
devShells.pastaMaker = pkgs.callPackage ./shell.nix { inherit pkgs nix; };
};
}