default.nix (725B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 pkg-config, 6 gtk3, 7 }: 8 9 stdenv.mkDerivation (finalAttrs: { 10 pname = "dragon"; 11 version = "1.2.0"; 12 13 src = fetchFromGitHub { 14 owner = "mwh"; 15 repo = "dragon"; 16 rev = "v${finalAttrs.version}"; 17 hash = "sha256-wqG6idlVvdN+sPwYgWu3UL0la5ssvymZibiak3KeV7M="; 18 }; 19 20 nativeBuildInputs = [ pkg-config ]; 21 22 buildInputs = [ gtk3 ]; 23 24 makeFlags = [ "CC:=$(CC)" ]; 25 26 installFlags = [ "PREFIX=$(out)" ]; 27 28 meta = { 29 description = "Drag and drop source/target for X"; 30 homepage = "https://github.com/mwh/dragon"; 31 license = lib.licenses.gpl3Plus; 32 maintainers = [ lib.maintainers.sikmir ]; 33 platforms = lib.platforms.linux; 34 skip.ci = stdenv.isDarwin; 35 }; 36 })