nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 929 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 makeBinaryWrapper, 6 acl, 7 xhost, 8}: 9 10rustPlatform.buildRustPackage rec { 11 pname = "ego"; 12 version = "1.1.7"; 13 14 src = fetchFromGitHub { 15 owner = "intgr"; 16 repo = "ego"; 17 rev = version; 18 hash = "sha256-613RM7Ldye0wHAH3VMhzhyT5WVTybph3gS/WNMrsgGI="; 19 }; 20 21 buildInputs = [ acl ]; 22 23 nativeBuildInputs = [ makeBinaryWrapper ]; 24 25 cargoHash = "sha256-GwWDH3np/YKUx7BLmKxUui2CXLYbHjivWC1av9jaccA="; 26 27 # requires access to /root 28 checkFlags = [ 29 "--skip=tests::test_check_user_homedir" 30 ]; 31 32 postInstall = '' 33 wrapProgram $out/bin/ego --prefix PATH : ${lib.makeBinPath [ xhost ]} 34 ''; 35 36 meta = { 37 description = "Run Linux desktop applications under a different local user"; 38 homepage = "https://github.com/intgr/ego"; 39 license = lib.licenses.mit; 40 maintainers = with lib.maintainers; [ 41 dit7ya 42 mio 43 ]; 44 mainProgram = "ego"; 45 }; 46}