forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
44 lines
960 B
Nix
44 lines
960 B
Nix
{ lib, stdenv
|
|
, substituteAll
|
|
, fetchFromGitHub
|
|
, file-roller
|
|
, gnome-bluetooth
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "extra-elementary-contracts";
|
|
version = "2018-08-21";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "worldofpeace";
|
|
repo = pname;
|
|
rev = "a05dfb00695854163805b666185e3e9f31b6eb83";
|
|
sha256 = "0fkaf2w4xg0n9faj74rgzy7gvd3yz112l058b157a3pr39vpci7g";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./exec-path.patch;
|
|
file_roller = file-roller;
|
|
gnome_bluetooth = gnome-bluetooth;
|
|
})
|
|
];
|
|
|
|
dontBuild = true;
|
|
dontConfigure = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/contractor
|
|
|
|
cp *.contract $out/share/contractor/
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Extra contractor files for elementary";
|
|
homepage = "https://github.com/worldofpeace/extra-elementary-contracts";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ worldofpeace ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|