nixpkgs/pkgs/development/tools/misc/nixbang/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

23 lines
562 B
Nix

{ lib, pythonPackages, fetchFromGitHub }:
pythonPackages.buildPythonApplication rec {
pname = "nixbang";
version = "0.1.2";
namePrefix = "";
src = fetchFromGitHub {
owner = "madjar";
repo = "nixbang";
rev = version;
sha256 = "1kzk53ry60i814wa6n9y2ni0bcxhbi9p8gdv10b974gf23mhi8vc";
};
meta = {
homepage = "https://github.com/madjar/nixbang";
description = "A special shebang to run scripts in a nix-shell";
mainProgram = "nixbang";
maintainers = [ lib.maintainers.madjar ];
platforms = lib.platforms.all;
};
}