mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-06 12:39:54 +03:00
Merge pull request #292528 from onny/nc4nix-update3
nc4nix: unstable-2023-11-06 -> 0-unstable-2024-03-01
This commit is contained in:
commit
e9bbbef21d
27
pkgs/by-name/nc/nc4nix/package.nix
Normal file
27
pkgs/by-name/nc/nc4nix/package.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildGoModule {
|
||||
pname = "nc4nix";
|
||||
version = "0-unstable-2024-03-01";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "helsinki-systems";
|
||||
repo = "nc4nix";
|
||||
rev = "ba37674c0dddf93e0a011dace92ec7f0ec834765";
|
||||
hash = "sha256-k12eeP2gojLCsJH1GGuiTmxz3ViPc0+oFBuptyh42Bw=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-ZXl4kMDY9ADkHUcLsl3uNpyErMzbgS+J65+uUeIXpSE=";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Packaging helper for Nextcloud apps";
|
||||
homepage = "https://github.com/helsinki-systems/nc4nix";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ onny ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
@ -1,50 +0,0 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, nix
|
||||
, makeWrapper
|
||||
, fetchpatch
|
||||
}:
|
||||
|
||||
buildGoModule {
|
||||
pname = "nc4nix";
|
||||
version = "unstable-2023-11-06";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "helsinki-systems";
|
||||
repo = "nc4nix";
|
||||
rev = "47666b418a71c609f8d2b2c2679956c2ac9818e5";
|
||||
hash = "sha256-cXg0emFFAYI1Jtiz+Xilmct3JNiO9cSWUbghyIRQBnY=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Switch hash calculation method
|
||||
# https://github.com/helsinki-systems/nc4nix/pull/3
|
||||
(fetchpatch {
|
||||
url = "https://github.com/helsinki-systems/nc4nix/commit/a7bca4793cc12e87d381f12f6f8c00ae2ca02893.patch";
|
||||
sha256 = "sha256-0JxyhSQLtlgLtsMv82wMjQHGdmOoQ2dcPPNAw2cFByE=";
|
||||
name = "switch_hash_calculation_method.patch";
|
||||
})
|
||||
];
|
||||
|
||||
vendorHash = "sha256-uhINWxFny/OY7M2vV3ehFzP90J6Z8cn5IZHWOuEg91M=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
# Depends on nix-prefetch-url
|
||||
wrapProgram $out/bin/nc4nix \
|
||||
--prefix PATH : ${lib.makeBinPath [ nix ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Packaging helper for Nextcloud apps";
|
||||
homepage = "https://github.com/helsinki-systems/nc4nix";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ onny ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
@ -33963,8 +33963,6 @@ with pkgs;
|
||||
|
||||
nanorc = callPackage ../applications/editors/nano/nanorc { };
|
||||
|
||||
nc4nix = callPackage ../development/tools/nc4nix { };
|
||||
|
||||
netbeans = callPackage ../applications/editors/netbeans {
|
||||
jdk = jdk17;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user