Loading pkgs/by-name/nc/ncps/package.nix +90 −76 Original line number Diff line number Diff line Loading @@ -13,33 +13,24 @@ python3, redis, writeShellScriptBin, nixosTests, nix-update-script, }: let dbmate-real = writeShellScriptBin "dbmate.real" '' exec ${dbmate}/bin/dbmate "$@" ''; dbmate-wrapper = buildGoModule { pname = "ncps-dbmate-wrapper"; inherit (finalAttrs) version; src = "${finalAttrs.src}/nix/dbmate-wrapper/src"; vendorHash = null; subPackages = [ "." ]; }; finalAttrs = { in buildGoModule (finalAttrs: { pname = "ncps"; version = "0.8.4"; version = "0.8.5"; src = fetchFromGitHub { owner = "kalbasit"; repo = "ncps"; tag = "v${finalAttrs.version}"; hash = "sha256-GJnWVhn8SZY5IJbBSuq1j8qV06/kdHhcVu6QhnTsk0Y="; hash = "sha256-0kQ2DTnBil7eSP/eSwLVqw/UyIwBMFtmKAeLCi64Fr8="; }; vendorHash = "sha256-AcgC+zTS3eVsbcs0jim4zDBGc3lIjwPbdVT7/KQ9Lkc="; Loading Loading @@ -67,7 +58,7 @@ let mkdir -p $out/share/ncps cp -r db $out/share/ncps/db makeWrapper ${dbmate-wrapper}/bin/dbmate-wrapper \ makeWrapper ${finalAttrs.passthru.dbmate-wrapper}/bin/dbmate-wrapper \ $out/bin/dbmate-ncps \ --prefix PATH : ${dbmate-real}/bin \ --set NCPS_DB_MIGRATIONS_DIR $out/share/ncps/db/migrations Loading @@ -94,6 +85,31 @@ let source $src/nix/packages/ncps/pre-check-redis.sh ''; passthru = { dbmate-wrapper = buildGoModule { pname = "ncps-dbmate-wrapper"; inherit (finalAttrs) version; src = "${finalAttrs.src}/nix/dbmate-wrapper/src"; vendorHash = null; subPackages = [ "." ]; }; tests = { inherit (nixosTests) ncps ncps-custom-sqlite-directory ncps-custom-storage-local ncps-ha-pg ncps-ha-pg-redis ; }; updateScript = nix-update-script { }; }; meta = { description = "Nix binary cache proxy service"; homepage = "https://github.com/kalbasit/ncps"; Loading @@ -104,6 +120,4 @@ let aciceri ]; }; }; in buildGoModule finalAttrs }) Loading
pkgs/by-name/nc/ncps/package.nix +90 −76 Original line number Diff line number Diff line Loading @@ -13,33 +13,24 @@ python3, redis, writeShellScriptBin, nixosTests, nix-update-script, }: let dbmate-real = writeShellScriptBin "dbmate.real" '' exec ${dbmate}/bin/dbmate "$@" ''; dbmate-wrapper = buildGoModule { pname = "ncps-dbmate-wrapper"; inherit (finalAttrs) version; src = "${finalAttrs.src}/nix/dbmate-wrapper/src"; vendorHash = null; subPackages = [ "." ]; }; finalAttrs = { in buildGoModule (finalAttrs: { pname = "ncps"; version = "0.8.4"; version = "0.8.5"; src = fetchFromGitHub { owner = "kalbasit"; repo = "ncps"; tag = "v${finalAttrs.version}"; hash = "sha256-GJnWVhn8SZY5IJbBSuq1j8qV06/kdHhcVu6QhnTsk0Y="; hash = "sha256-0kQ2DTnBil7eSP/eSwLVqw/UyIwBMFtmKAeLCi64Fr8="; }; vendorHash = "sha256-AcgC+zTS3eVsbcs0jim4zDBGc3lIjwPbdVT7/KQ9Lkc="; Loading Loading @@ -67,7 +58,7 @@ let mkdir -p $out/share/ncps cp -r db $out/share/ncps/db makeWrapper ${dbmate-wrapper}/bin/dbmate-wrapper \ makeWrapper ${finalAttrs.passthru.dbmate-wrapper}/bin/dbmate-wrapper \ $out/bin/dbmate-ncps \ --prefix PATH : ${dbmate-real}/bin \ --set NCPS_DB_MIGRATIONS_DIR $out/share/ncps/db/migrations Loading @@ -94,6 +85,31 @@ let source $src/nix/packages/ncps/pre-check-redis.sh ''; passthru = { dbmate-wrapper = buildGoModule { pname = "ncps-dbmate-wrapper"; inherit (finalAttrs) version; src = "${finalAttrs.src}/nix/dbmate-wrapper/src"; vendorHash = null; subPackages = [ "." ]; }; tests = { inherit (nixosTests) ncps ncps-custom-sqlite-directory ncps-custom-storage-local ncps-ha-pg ncps-ha-pg-redis ; }; updateScript = nix-update-script { }; }; meta = { description = "Nix binary cache proxy service"; homepage = "https://github.com/kalbasit/ncps"; Loading @@ -104,6 +120,4 @@ let aciceri ]; }; }; in buildGoModule finalAttrs })