anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / development / libraries / attr / default.nix
blobdfc8a5cdb82b3c152010cd5d84075c6ff4c08d02
1 { lib, stdenv, fetchurl, gettext }:
3 # Note: this package is used for bootstrapping fetchurl, and thus
4 # cannot use fetchpatch! All mutable patches (generated by GitHub or
5 # cgit) that are needed here should be included directly in Nixpkgs as
6 # files.
8 stdenv.mkDerivation rec {
9   pname = "attr";
10   version = "2.5.2";
12   src = fetchurl {
13     url = "mirror://savannah/attr/${pname}-${version}.tar.gz";
14     sha256 = "sha256-Ob9nRS+kHQlIwhl2AQU/SLPXigKTiXNDMqYwmmgMbIc=";
15   };
17   outputs = [ "bin" "dev" "out" "man" "doc" ];
19   nativeBuildInputs = [ gettext ];
21   patches = [ ./musl.patch ];
23   postPatch = ''
24     for script in install-sh include/install-sh; do
25       patchShebangs $script
26     done
27   '';
29   meta = with lib; {
30     homepage = "https://savannah.nongnu.org/projects/attr/";
31     description = "Library and tools for manipulating extended attributes";
32     platforms = platforms.linux;
33     badPlatforms = platforms.microblaze;
34     license = licenses.gpl2Plus;
35   };