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;
|
2024-03-25 13:47:43 +03:00
|
|
|
|
|
|
|
sourceInfo' = {
|
|
|
|
inherit (inputs.nixpkgs-master.sourceInfo) rev lastModified;
|
|
|
|
};
|
|
|
|
metaFile = builtins.toFile "meta.json" (builtins.toJSON sourceInfo');
|
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 = ''
|
2024-03-25 13:47:43 +03:00
|
|
|
cat ${metaFile} > $out
|
2023-12-22 22:34:22 +03:00
|
|
|
'';
|
|
|
|
};
|
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; };
|
|
|
|
};
|
|
|
|
}
|