mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 03:43:45 +00:00
Merge pull request #179747 from thiagokokada/arandr-small-refactor
arandr: refactor derivation
This commit is contained in:
commit
26070ed5d5
@ -1,22 +1,26 @@
|
||||
{ lib, fetchurl, python3Packages
|
||||
, gobject-introspection, gsettings-desktop-schemas, gtk3
|
||||
, wrapGAppsHook, xrandr
|
||||
{ lib
|
||||
, fetchurl
|
||||
, python3Packages
|
||||
, gobject-introspection
|
||||
, gsettings-desktop-schemas
|
||||
, gtk3
|
||||
, wrapGAppsHook
|
||||
, xrandr
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (python3Packages) buildPythonApplication docutils pygobject3;
|
||||
in
|
||||
buildPythonApplication rec {
|
||||
pname = "arandr";
|
||||
version = "0.1.10";
|
||||
name = "${pname}-${version}";
|
||||
in buildPythonApplication rec {
|
||||
inherit pname version;
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
preBuild = ''
|
||||
rm -rf data/po/*
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user