mirror of
https://github.com/nix-community/noogle.git
synced 2024-12-02 06:24:05 +03:00
26 lines
740 B
Nix
26 lines
740 B
Nix
{ inputs, ... }: {
|
|
perSystem = { self', inputs', pkgs, lib, ... }:
|
|
let
|
|
inherit (inputs'.nix.packages) nix;
|
|
nixpkgs = self'.packages.nixpkgs-migrated;
|
|
|
|
sourceInfo' = {
|
|
inherit (inputs.nixpkgs-master.sourceInfo) rev lastModified;
|
|
};
|
|
metaFile = builtins.toFile "meta.json" (builtins.toJSON sourceInfo');
|
|
in
|
|
{
|
|
packages = {
|
|
pasta-meta = pkgs.stdenv.mkDerivation {
|
|
name = "pasta-meta";
|
|
src = ./.;
|
|
buildPhase = ''
|
|
cat ${metaFile} > $out
|
|
'';
|
|
};
|
|
pasta = pkgs.callPackage ./default.nix { inherit nixpkgs nix pkgs; };
|
|
};
|
|
devShells.pastaMaker = pkgs.callPackage ./shell.nix { inherit pkgs nix; };
|
|
};
|
|
}
|