mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 01:20:40 +00:00
d4681bf626
- fetchNuGet can fetch binaries from nuget servers - buildDotnetPackage can build .NET packages using mono/xbuild - Places nuget & paket as they would clash with nix - Patch project files because F# targets are expected to be found in the mono directory (and we know that's not going to happen on nix) - Find DLLs that were copied from buildInputs and replace by symlink for sharing - Export produced DLL via the pkg-config mechanism - Create wrappers for produced EXEs - Repackaged this new infrastructure: keepass, monodevelop - Newly packaged: ExtCore, UnionArgParser, FSharp.Data, Paket, and a bunch more.. This is a combination of 73 commits.
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{ stdenv, fetchurl, buildDotnetPackage, makeWrapper, unzip, makeDesktopItem }:
|
|
|
|
buildDotnetPackage rec {
|
|
baseName = "keepass";
|
|
version = "2.29";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/keepass/KeePass-${version}-Source.zip";
|
|
sha256 = "051s0aznyyhbpdbly6h5rs0ax0zvkp45dh93nmq6lwhicswjwn5m";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
patches = [ ./keepass.patch ];
|
|
|
|
preConfigure = "rm -rvf Build/*";
|
|
|
|
desktopItem = makeDesktopItem {
|
|
name = "keepass";
|
|
exec = "keepass";
|
|
comment = "Password manager";
|
|
desktopName = "Keepass";
|
|
genericName = "Password manager";
|
|
categories = "Application;Other;";
|
|
};
|
|
|
|
outputFiles = [ "Build/KeePass/Release/*" "Build/KeePassLib/Release/*" ];
|
|
dllFiles = [ "KeePassLib.dll" ];
|
|
exeFiles = [ "KeePass.exe" ];
|
|
|
|
postInstall = ''
|
|
mkdir -p "$out/share/applications"
|
|
cp ${desktopItem}/share/applications/* $out/share/applications
|
|
'';
|
|
|
|
meta = {
|
|
description = "GUI password manager with strong cryptography";
|
|
homepage = http://www.keepass.info/;
|
|
maintainers = with stdenv.lib.maintainers; [ amorsillo obadz ];
|
|
platforms = with stdenv.lib.platforms; all;
|
|
license = stdenv.lib.licenses.gpl2;
|
|
};
|
|
}
|