19 nix = if nixOverride != null then nixOverride else nixVersions.nix_2_24;
21 stdenv.mkDerivation (finalAttrs: {
22 pname = "nix-plugin-pijul";
26 url = "https://dblsaiko.net/pub/nix-plugin-pijul/nix-plugin-pijul-${finalAttrs.version}.tar.gz";
27 hash = "sha256-BOuBaFvejv1gffhBlAJADLtd5Df71oQbuCnniU07nF4=";
46 runCommand "localRepoCheck-${nixOverride.name}"
54 export HOME=$(mktemp -d)
56 pijul identity new --no-link --no-prompt --display-name 'Test User' --email 'test@example.com'
63 pijul record --message 'Add foo'
67 --option plugin-files ${
68 nix-plugin-pijul.override { inherit nixOverride; }
69 }/lib/nix/plugins/pijul.so \
70 --extra-experimental-features 'nix-command flakes' \
71 eval --impure --raw --expr "builtins.readFile ((builtins.fetchTree \"pijul+file://$PWD\") + \"/foo\")"
76 [[ "$output" = "it works" ]]
82 stable = localRepoCheck nixVersions.stable;
83 latest = localRepoCheck nixVersions.latest;
84 git = localRepoCheck nixVersions.git;
85 nix_2_24 = localRepoCheck nixVersions.nix_2_24;
89 description = "Plugin to add Pijul support to the Nix package manager";
90 homepage = "https://nest.pijul.com/dblsaiko/nix-plugin-pijul";
91 license = lib.licenses.lgpl3Plus;
92 maintainers = [ lib.maintainers.dblsaiko ];
93 platforms = lib.platforms.unix;