arandr: refactor derivation
This commit is contained in:
parent
f7cbcafc02
commit
ece1a9fe66
|
@ -1,22 +1,26 @@
|
||||||
{ lib, fetchurl, python3Packages
|
{ lib
|
||||||
, gobject-introspection, gsettings-desktop-schemas, gtk3
|
, fetchurl
|
||||||
, wrapGAppsHook, xrandr
|
, python3Packages
|
||||||
|
, gobject-introspection
|
||||||
|
, gsettings-desktop-schemas
|
||||||
|
, gtk3
|
||||||
|
, wrapGAppsHook
|
||||||
|
, xrandr
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (python3Packages) buildPythonApplication docutils pygobject3;
|
inherit (python3Packages) buildPythonApplication docutils pygobject3;
|
||||||
|
in
|
||||||
|
buildPythonApplication rec {
|
||||||
pname = "arandr";
|
pname = "arandr";
|
||||||
version = "0.1.10";
|
version = "0.1.10";
|
||||||
name = "${pname}-${version}";
|
|
||||||
in buildPythonApplication rec {
|
|
||||||
inherit pname version;
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://christian.amsuess.com/tools/arandr/files/${name}.tar.gz";
|
url = "https://christian.amsuess.com/tools/arandr/files/${pname}-${version}.tar.gz";
|
||||||
sha256 = "135q0llvm077jil2fr92ssw3p095m4r8jfj0lc5rr3m71n4srj6v";
|
sha256 = "135q0llvm077jil2fr92ssw3p095m4r8jfj0lc5rr3m71n4srj6v";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
preBuild = ''
|
||||||
rm -rf data/po/*
|
rm -rf data/po/*
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue